-- GENERATED SPELL FOR [Runic Lightning Gunner] --


function spell0_26414(pUnit, Event) --@Lightning Gun Shot,n/a--
pUnit:FullCastSpellOnTarget(46982,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26414', 2000, 1)
end

function Sorts_26414(pUnit, Event)
local choix_sorts_26414 = math.random(0, 0)
if choix_sorts_26414 == 0 then
pUnit:RegisterEvent('spell0_26414', 1, 1)
end
end

function mob26414_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26414', math.random(1500, 3000), 1)
end

function mob26414_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26414_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26414_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26414, 1, 'mob26414_Action')
RegisterUnitEvent(26414, 2, 'mob26414_Leave')
RegisterUnitEvent(26414, 3, 'mob26414_Kill')
RegisterUnitEvent(26414, 4, 'mob26414_Die')
